<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<ProjectCollection>" %>
<%@ Import Namespace="Coderoom.ScrumPlanner.Domain"%>
<%@ Import Namespace="Coderoom.ScrumPlanner.Web.Controllers"%>

<asp:Content ID="MainContentPlaceHolder" ContentPlaceHolderID="MainContent" runat="server">

    <h2 class="first">Projects</h2>
    <p>
		This page lists all projects.
    </p>
    <table class="detailedList">
		<thead>
			<tr>
				<th>Name</th>
				<th>Status</th>
			</tr>
		</thead>
		<tbody>
			<% foreach (var project in Model) { %>
				<tr>
					<td>
						<%= Html.ActionLink<ProjectController>(x => x.Detail(project.Slug), project.Title) %>
					</td>
					<td>You don't want to know</td>
				</tr>
			<% } %>
		</tbody>
    </table>

</asp:Content>

<asp:Content ID="SidebarContentPlaceHolder" ContentPlaceHolderID="SidebarContent" runat="server">

	<ul class="contextActions">
		<li>
			<%= Html.ActionLink<ProjectController>(x => x.New(), "Add Project") %>
		</li>
	</ul>

</asp:Content>
